package com.battle.pojo.param.authorization;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.battle.pojo.enums.authorized.AuthorizedTypeEnum;
import lombok.Data;

/**
 * @author Joseph.Li
 * @author joseph.li@king-v.com
 * Created in 2022-07-02 14:59
 *
 * 获取授权对象树
 */
@Data
public class GetAuthorizedTreeParam {

    /**
     * 授权对象id
     */
    private Long targetId;

    /**
     * 授权对象类型 1：用户 2：角色 3:部门
     */
    @JsonIgnore
    private Integer targetType=2;

    /**
     * 授权类型 1，允许 2，禁用
     */
    @JsonIgnore
//    @NotNull(message = "授权类型不能为空")
    private AuthorizedTypeEnum authorizationType=AuthorizedTypeEnum.ALLOW;
}
